/**
 * 
 */
package net.phoenix.repository.nodetype;

import javax.jcr.RepositoryException;
import javax.jcr.UnsupportedRepositoryOperationException;
import javax.jcr.nodetype.InvalidNodeTypeDefinitionException;
import javax.jcr.nodetype.NoSuchNodeTypeException;
import javax.jcr.nodetype.NodeDefinitionTemplate;
import javax.jcr.nodetype.NodeType;
import javax.jcr.nodetype.NodeTypeDefinition;
import javax.jcr.nodetype.NodeTypeExistsException;
import javax.jcr.nodetype.NodeTypeIterator;
import javax.jcr.nodetype.NodeTypeManager;
import javax.jcr.nodetype.NodeTypeTemplate;
import javax.jcr.nodetype.PropertyDefinitionTemplate;

/**
 * @author lixf
 *
 */
public class NodeTypeManagerWrapper implements NodeTypeManager{
	protected NodeTypeManager wrapper;
	
	public NodeDefinitionTemplate createNodeDefinitionTemplate()
			throws UnsupportedRepositoryOperationException, RepositoryException {
		return wrapper.createNodeDefinitionTemplate();
	}

	public NodeTypeTemplate createNodeTypeTemplate()
			throws UnsupportedRepositoryOperationException, RepositoryException {
		return wrapper.createNodeTypeTemplate();
	}

	public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition arg0)
			throws UnsupportedRepositoryOperationException, RepositoryException {
		return wrapper.createNodeTypeTemplate(arg0);
	}

	public PropertyDefinitionTemplate createPropertyDefinitionTemplate()
			throws UnsupportedRepositoryOperationException, RepositoryException {
		return wrapper.createPropertyDefinitionTemplate();
	}

	public NodeTypeIterator getAllNodeTypes() throws RepositoryException {
		return wrapper.getAllNodeTypes();
	}

	public NodeTypeIterator getMixinNodeTypes() throws RepositoryException {
		return wrapper.getMixinNodeTypes();
	}

	public NodeType getNodeType(String arg0) throws NoSuchNodeTypeException,
			RepositoryException {
		return wrapper.getNodeType(arg0);
	}

	public NodeTypeIterator getPrimaryNodeTypes() throws RepositoryException {
		return wrapper.getPrimaryNodeTypes();
	}

	public boolean hasNodeType(String arg0) throws RepositoryException {
		return wrapper.hasNodeType(arg0);
	}

	public NodeType registerNodeType(NodeTypeDefinition arg0, boolean arg1)
			throws InvalidNodeTypeDefinitionException, NodeTypeExistsException,
			UnsupportedRepositoryOperationException, RepositoryException {
		return wrapper.registerNodeType(arg0, arg1);
	}

	public NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] arg0,
			boolean arg1) throws InvalidNodeTypeDefinitionException,
			NodeTypeExistsException, UnsupportedRepositoryOperationException,
			RepositoryException {
		return wrapper.registerNodeTypes(arg0, arg1);
	}

	public void unregisterNodeType(String arg0)
			throws UnsupportedRepositoryOperationException,
			NoSuchNodeTypeException, RepositoryException {
		wrapper.unregisterNodeType(arg0);
	}

	public void unregisterNodeTypes(String[] arg0)
			throws UnsupportedRepositoryOperationException,
			NoSuchNodeTypeException, RepositoryException {
		wrapper.unregisterNodeTypes(arg0);
	}

	public NodeTypeManagerWrapper(NodeTypeManager wrapper) {
		this.wrapper = wrapper;
	}
	

}
